package page244;

import java.time.LocalDate;
import java.time.temporal.ChronoUnit;

public class Test3 {
    public static void main(String[] args) {
        int startYear = Integer.parseInt(args[0]);
        int startMonth = Integer.parseInt(args[1]);
        int startDay = Integer.parseInt(args[2]);
        int endYear = Integer.parseInt(args[3]);
        int endMonth = Integer.parseInt(args[4]);
        int endDay = Integer.parseInt(args[5]);
        LocalDate startDate = LocalDate.of(startYear, startMonth, startDay);
        LocalDate endDate = LocalDate.of(endYear, endMonth, endDay);
        long days = startDate.until(endDate, ChronoUnit.DAYS);
        System.out.println(days);
    }
}
